package com.blensmile.ffmpeglib;

import android.util.Log;

public class FFUtils {

    static {
        System.loadLibrary("native-li");
//        System.loadLibrary("avcodec");
//        System.loadLibrary("avfilter");
//        System.loadLibrary("avformat");
//        System.loadLibrary("avutil");
//        System.loadLibrary("swresample");
//        System.loadLibrary("swscale");
//        System.loadLibrary("libx264");
//        System.loadLibrary("fkd-aac");
        Log.i("blenLog",stringFromJNI());
    }

    public static int init(){
        return 1;
    }

    public static int run(String cmds){
        String[] cmdArray = cmds.split("[ \\t]+");
        return run(cmdArray);
    }

    public native static String stringFromJNI();
    public native static int run(String[] cmd);
}
